<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
            width: 500px;
        }
        td{
            border: 1px solid yellow;
            text-align: center;
        }
    </style>
</head>
<body>
    <table>
        <tr>
            <td>序号</td>
            <td>id</td>
            <td>title</td>
            <td>price</td>
        </tr>
        {% for book in book_list %}
            <tr>
            <td>{{ forloop.counter }}</td>
            <td>{{ book.id }}</td>
            <td>{{ book.title }}</td>
            <td>{{ book.price }}</td>
            </tr>
        {% endfor %}
    </table>
</body>
</html>